import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listList(query) {
  return request({
    url: '/mes/pro/scrap/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getList(scrapId) {
  return request({
    url: '/mes/pro/scrap/' + scrapId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addList(data) {
  return request({
    url: '/mes/pro/scrap',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateList(data) {
  return request({
    url: '/mes/pro/scrap',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delList(scrapId) {
  return request({
    url: '/mes/pro/scrap/' + scrapId,
    method: 'delete'
  })
}


// 同步
export function syncScrapList() {
  return request({
    url: '/mes/pro/scrap/sync',
    method: 'get'
  })
}
